import { ColumnsRenderFun, getSorter } from '@/common';

const selectBankColumns = () => {
  return [
    {
      title: '银行行号',
      dataIndex: 'bankCode',
      key: 'bankCode',
      visible: false,
      width: 150,
      sorter: (a: any, b: any) => getSorter(a?.bankCode, b?.bankCode),
      render: (text: string) => ColumnsRenderFun({ text, isTooltip: true }),
    },
    {
      title: '开户行名称',
      dataIndex: 'bankName',
      key: 'bankName',
      visible: false,
      width: 350,
      sorter: (a: any, b: any) => getSorter(a?.bankName, b?.bankName),
      render: (text: string) => ColumnsRenderFun({ text, isTooltip: true }),
    },
  ];
};

export { selectBankColumns };
